.page-message-box {
  width: 100%;
  height: 100vh;
  overflow: auto;
  background-color: #2e2f3d;
  position: fixed;
  .chat-box{
    width: 980px;
    height: 797px;
    background: #ffffff;
    opacity: 1;
    margin: 50px auto 20px auto;
    .chat-box-top {
      width: 100%;
      height: 53px;
      padding-left: 15px;
      box-sizing: border-box;
      background: #f7f8fa;
      opacity: 1;
      border-radius: 5px 5px 0 0;
      font-size: 16px;
      font-family: 'Microsoft YaHei', serif;
      font-weight: bold;
      line-height: 53px;
      color: #333333;
    }
    .chat-box-main {
      display: flex;
      height: 744px;
      /* 左侧用户名和商家栏样式 */
      .chat-box-left {
        overflow:auto;
        width: 287px;
        height: 100%;
        background: #ffffff;
        opacity: 1;
        border-right: 1px solid #eceef0;
        .shop-list {
          padding: 0;
          margin: 0;
          .shop-item {
            display: flex;
            align-items: center;
            cursor: pointer;

            &:hover {
              background-color: #d0e9ff;
            }

            .shop-icon{
              width: 36px;
              height: 36px;
              margin: 12px 12px 12px 15px;
              img {
                width: 100%;
                height: 100%;
              }
            }

            .shop-info {
              flex: 1;
              display: flex;
              flex-direction: column;
              .shop-info-name {
                display: flex;
                justify-content: space-between;
                font-size: 14px;
                font-family: 'Microsoft YaHei', serif;
                font-weight: 400;
                line-height: 20px;
                color: #333333;
                -webkit-box-orient: vertical;
                -webkit-line-clamp: 1;
                overflow: hidden;
                text-overflow: ellipsis;
                word-break: break-word;
                .name{
                  width: 80%;
                  color: #333333;
                  display: -webkit-box;
                  -webkit-box-orient: vertical;
                  -webkit-line-clamp: 1;
                  overflow: hidden;
                  text-overflow: ellipsis;
                  word-break: break-word;
                }
                .tips{
                  min-width: 16px;
                  height: 16px;
                  line-height: 16px;
                  border-radius: 16px;
                  padding: 0 5px;
                  margin-right: 5px;
                  box-sizing: border-box;
                  color: #fff;
                  font-size: 10px;
                  content: " ";
                  background: #fc1b35;
                }
              }
              .shop-info-icon {
                width: 110px;
                line-height: 20px;
                font-size: 12px;
                font-family: 'Microsoft YaHei', serif;
                font-weight: 400;
                color: #a1a6af;
                display: -webkit-box;
                -webkit-box-orient: vertical;
                -webkit-line-clamp: 1;
                overflow: hidden;
                text-overflow: ellipsis;
                word-break: break-word;
              }

            }
          }
          // 新消息过来 背景颜色 以及 选中的背景颜色
          .newMessage{
            background-color: #FFF9cd;
          }
          .changeUser{
            background-color: #D0E9FF;
          }
        }
        .empty-contacts{
          height: 100%;
          display: flex;
          flex-direction: column;
          align-items: center;
          justify-content: center;
          user-select: none;
          margin-top: -80px;
          .empty-img{
            width: 120px;
            height: 120px;
          }
          .empty-txt{
            margin-top: 12px;
            font-size: 14px;
            color: #666;
          }
        }
      }

      /* 右侧主要信息聊天栏 */
      .chat-box-right {
        width: 100%;
        height: 100%;
        .im-box {
          display: flex;
          .im-main {
            width: 100%;
            height: 735px;
            border-right: 1px solid #ebedf0;
            .chat-main-form {
              display: flex;
              flex-direction: column;
              /* 点击加载更多 */
              .display-infor {
                height: 588px;
                padding-top: 15px;
                overflow-y: auto;
                box-sizing: border-box;
                .more {
                  font-size: 12px;
                  color: #5a606b;
                  text-align: center;
                  margin-bottom: 20px;
                  cursor: pointer;
                  -moz-user-select: none; /*火狐*/
                  -webkit-user-select: none; /*webkit浏览器*/
                  -ms-user-select: none; /*IE10*/
                  user-select: none;
                }
              }
              .reply {
                width: 100%;
                height: 147px;
                border-top: 1px solid #ebedf0;
                position: relative;
                .small-box {
                  display: flex;
                  .customerService {
                    margin: 17px 0 8px 22px;
                    cursor: pointer;
                  }
                }
                .upload {
                  width: 22px;
                  height: 18px;
                  background: url("../../../assets/img/upload.png");
                  margin: 17px 0 8px 22px;
                  cursor: pointer;
                }
                .imgUp {
                  position: absolute;
                  left: 22px;
                  top: 18px;
                }
                .imgUp:hover {
                  background-image: url("../../../assets/img/upload-on.png");
                  cursor: pointer;
                }
                .input-upload-btn {
                  position: absolute;
                  opacity: 0;
                  width: 0;
                  height: 0;
                }
                .reply-area{
                  textarea{
                    width: 98%;
                    margin-left: 12px;
                    border: none;
                    resize: none;
                    outline: none;
                    box-shadow: none;
                  }
                }
                .send {
                  width: 62px;
                  height: 26px;
                  line-height: 26px;
                  position: absolute;
                  right: 20px;
                  text-align: center;
                  background: #155bd4;
                  color: #fff;
                  cursor: pointer;
                  opacity: 1;
                  border-radius: 13px;
                }
              }
            }
          }
        }
      }
    }
  }

  /* 主要聊天信息栏 */
  .msg-list-box{
    .topTime {
      text-align: center;
      margin-bottom: 15px;
      font-size: 10px;
      font-family: 'PingFang SC', serif;
      font-weight: 400;
      color: #aaaaaa;
      opacity: 1;
    }
    .transInfo {
      display: flex;
      align-items: center;
      margin-bottom: 15px;
      .topTrans {
        flex-shrink: 0;
        text-align: center;
        font-size: 12px;
        font-family: 'Microsoft YaHei', serif;
        font-weight: 350;
        color: #5a606b;
        opacity: 1;
        padding: 0 10px;
      }
      &::after,
      &::before {
        content: '';
        display: block;
        margin: 0 10px;
        width: 100%;
        border-bottom: 1px solid #edeff2;
      }
    }
    .my{
      width: 100%;
      display: flex;
      justify-content: flex-end;
      .left{
        flex-shrink: 0;
        margin-top: 20px;
        margin-left: 20px;
      }
      .right{
        width: 100%;
        display: flex;
        margin-left: 7px;
        flex-direction: column;
        margin-bottom: 20px;
        .bubble{
          max-width: 40%;
          margin-top: 6px;
          color: #000;
          opacity: 1;
          border-radius: 8px 0 8px 8px;
          span {
            display: inline-block;
            padding: 12px 14px 11px 16px;
            word-break: break-word;
            box-sizing: border-box;
            background-color: #f3f3f3;
            color: #000;
            opacity: 1;
            border-radius: 8px 0 8px 8px;
          }
        }
      }
    }
    .other {
      width: 100%;
      display: flex;
      .left{
        width: 100%;
        display: flex;
        margin-left: 12px;
        margin-right: 7px;
        flex-direction: column;
        margin-bottom: 20px;
        .message-box{
          display: flex;
          justify-content: flex-end;
          align-items: center;
        }
        .bubble {
          max-width: 40%;
          align-self: flex-end;
          margin-top: 6px;
          margin-right: 14px;
          opacity: 1;
          border-radius: 8px 0 8px 8px;
          color: #333;
          span {
            white-space: pre-line;
            display: inline-block;
            padding: 12px 14px 11px 16px;
            word-break: break-word;
            box-sizing: border-box;
            background-color: #d0e9ff;
            color: #333333;
            opacity: 1;
            border-radius: 8px 0 8px 8px;
          }
        }
        .username,.take-charge-of{
          width: 100%;
          font-size: 12px;
          font-family: 'Microsoft YaHei', serif;
          font-weight: 400;
          line-height: 14px;
          color: #999;
          display: flex;
          align-items: center;
          justify-content: flex-end;
        }
        .take-charge-of{
          margin-top:10px;
        }
        .unread{
          font-size: 12px;
          color: #AAAAAA;
          margin-right: 9px;
        }
      }
      .right{
        flex-shrink: 0;
        margin-top: 20px;
        margin-left: -8px;
        margin-right: 20px;
      }
    }

    .my .right .username .name,.other .left .username .name{
      max-width: 70%;
      height: 20px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .my .left .avatar,.other .right .avatar{
      width: 40px;
      height: 40px;
      border-radius: 5px;
    }

    .my .right .bubble .longimage,.other .left .bubble .longimage{
      width: 88px;
      height: 88px;
      cursor: pointer;
      object-fit: contain;
    }
  }

  /* 商品链接样式 */
  .prod-link{
    .link-prod {
      width: 65%;
      border: 1px solid #f2f2f2;
      box-sizing: border-box;
      margin-top: 6px;
      padding: 15px 0 18px 12px;
      cursor: pointer;
      .prod-number {
        margin-bottom: 5px;
      }
      .prod-box {
        display: flex;
        img {
          width: 88px;
          height: 88px;
        }
        .link-detail {
          display: flex;
          width: 70%;
          flex-direction: column;
          justify-content: space-between;
          margin: 15px;
          box-sizing: border-box;
          .prod-name {
            font-size: 10px;
            font-family: 'PingFang SC', serif;
            font-weight: 400;
            color: #333333;
            opacity: 1;
            word-break: break-word;
          }
          .prod-price {
            margin-top: 10px;
            font-size: 10px;
            font-weight: 400;
            color: #999999;
            opacity: 1;
            display: flex;
            justify-content: space-between;
            word-break: break-all;
          }
        }
      }
    }
  }
}

// 转接客服弹窗
.service-select-body {
  height: 630px;
  overflow: auto;
  border-top: 1px solid #eeeeee;
  border-right: 1px solid #eeeeee;
  border-bottom: 1px solid #eeeeee;
}

/* 放大图片的右侧关闭图标 */
.bubble :deep(.el-image-viewer__close){
  color:red !important;
}
